/* model */
import Role from "@model/entity/Role/Role";
import { CustomerServiceCloudTextFunction, ServiceCloudTextFunction, SHBProductLineEnum } from "@shb-lib/tenant";
/* util */
import { randomString } from "@src/util/lang/string";

type BizRoleSelectOption = Role & {
  label: string;
  value: string;
  children?: BizRoleSelectOption[];
}

const ProductLineRoleMap: Record<string, Role> = {
  [SHBProductLineEnum.BusinessServiceCloud]: {
    id: randomString(), 
    name: ServiceCloudTextFunction(),
    productLine: SHBProductLineEnum.BusinessServiceCloud,
  },
  [SHBProductLineEnum.CustomerServiceCloud]: {
    id: randomString(), 
    name: CustomerServiceCloudTextFunction(),
    productLine: SHBProductLineEnum.BusinessServiceCloud
  }
}

export {
  BizRoleSelectOption,
  ProductLineRoleMap
}
